package com.tanhua.dubbo.api;

import com.tanhua.dubbo.mappers.AnnouncementsMapper;
import com.tanhua.model.domain.Announcements;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;



@DubboService
public class AnnouncementsApiImpl implements AnnouncementsApi {

    @Autowired
    private AnnouncementsMapper announcementsMapper;


    @Override
    public List<Announcements> find(Integer page, Integer pagesize) {

        List<Announcements> announcements = announcementsMapper.find(page, pagesize);
        return announcements;

    }
}
